package servlet;


import javax.sql.DataSource;

import org.apache.log4j.Logger;

import src.util.Message;
import src.util.MessageCfg;

public class LifeChecker extends NetPlayServlet{

	private DataSource ds;
	private Logger log = Logger.getLogger(LifeChecker.class);
	

	public void lifeCheck()
	{
		log.warn(">Life check PENDING.");
		
		new Message( new MessageCfg( true, true));

		Message message = new Message("200",String.class);
		message.setStatus(200);
		message.setStatusInfo("OK");
		log.warn(">Life check OK.");
		send( message.toClient( 200, "OK"));
	}

}
